﻿<%@ Page Language="C#" AutoEventWireup="true" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>SMIL-Click</title>
    <style type="text/css">
    html, body {
	    height: 100%;
	    overflow: auto;
    }
    body {
	    padding: 0;
	    margin: 0;
    }
    #silverlightControlHost {
	    height: 100%;
	    text-align:center;
    }
    </style>
    <script type="text/javascript" src="SMIL.js"></script>
    <script type="text/javascript" src="Silverlight.js"></script>
    <script type="text/javascript">
        function onSilverlightError(sender, args) {
            var appSource = "";
            if (sender != null && sender != 0) {
              appSource = sender.getHost().Source;
            }
            
            var errorType = args.ErrorType;
            var iErrorCode = args.ErrorCode;

            if (errorType == "ImageError" || errorType == "MediaError") {
              return;
            }

            var errMsg = "Unhandled Error in Silverlight Application " +  appSource + "\n" ;

            errMsg += "Code: "+ iErrorCode + "    \n";
            errMsg += "Category: " + errorType + "       \n";
            errMsg += "Message: " + args.ErrorMessage + "     \n";

            if (errorType == "ParserError") {
                errMsg += "File: " + args.xamlFile + "     \n";
                errMsg += "Line: " + args.lineNumber + "     \n";
                errMsg += "Position: " + args.charPosition + "     \n";
            }
            else if (errorType == "RuntimeError") {           
                if (args.lineNumber != 0) {
                    errMsg += "Line: " + args.lineNumber + "     \n";
                    errMsg += "Position: " +  args.charPosition + "     \n";
                }
                errMsg += "MethodName: " + args.methodName + "     \n";
            }

            throw new Error(errMsg);
        }

    </script>
</head>
<body>
    <form id="form1" runat="server" style="height:100%">
    
     <span style="visibility:hidden">
     <%--<input type="text" name="ctl00$m$g_34776f78_2e4e_4c4f_a337_9168b38e52fb$ctl00$ctl04$ctl01$ctl00$ctl00$ctl05$ctl00$ctl00$lCoordinate" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?>&lt;StyledGeometrys>&lt;StyledGeometry>&lt;Style id=&quot;default&quot;>&lt;IconStyle>&lt;scale>1&lt;/scale>&lt;Icon>&lt;href>&lt;/href>&lt;/Icon>&lt;/IconStyle>&lt;LineStyle>&lt;color>FFFF0000&lt;/color>&lt;width>2&lt;/width>&lt;/LineStyle>&lt;PolyStyle>&lt;color>CCAAAAAA&lt;/color>&lt;fill>1&lt;/fill>&lt;outline>1&lt;/outline>&lt;LineStyle>&lt;color>FFFF0000&lt;/color>&lt;width>2&lt;/width>&lt;/LineStyle>&lt;/PolyStyle>&lt;/Style>&lt;Geometry>POLYGON((15.657609288059746 62.556809333521528,15.459855381809746 62.462991521860886,15.602677647434746 62.4121561723654,15.844376866184746 62.435042773441268,15.954240147434746 62.516275696515116,15.860856358372246 62.5795852679328,15.657609288059746 62.556809333521528))&lt;/Geometry>&lt;/StyledGeometry>&lt;/StyledGeometrys>" id="ctl00_m_g_34776f78_2e4e_4c4f_a337_9168b38e52fb_ctl00_ctl04_ctl01_ctl00_ctl00_ctl05_ctl00_ctl00_lCoordinate"/>--%>
     <input type="text" name="ctl00$m$g_34776f78_2e4e_4c4f_a337_9168b38e52fb$ctl00$ctl04$ctl01$ctl00$ctl00$ctl05$ctl00$ctl00$lCoordinate" value="&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-16&quot;?&gt;&lt;StyledGeometrys&gt;&lt;StyledGeometry&gt;&lt;Style id=&quot;default&quot;&gt;&lt;IconStyle&gt;&lt;scale&gt;1&lt;/scale&gt;&lt;Icon&gt;&lt;href&gt;/_layouts/images/SMIL/pin.png&lt;/href&gt;&lt;/Icon&gt;&lt;/IconStyle&gt;&lt;LineStyle&gt;&lt;color&gt;FFFF0000&lt;/color&gt;&lt;width&gt;6&lt;/width&gt;&lt;/LineStyle&gt;&lt;PolyStyle&gt;&lt;color&gt;CC2FDA00&lt;/color&gt;&lt;fill&gt;1&lt;/fill&gt;&lt;outline&gt;1&lt;/outline&gt;&lt;LineStyle&gt;&lt;color&gt;FFFF0000&lt;/color&gt;&lt;width&gt;2&lt;/width&gt;&lt;/LineStyle&gt;&lt;/PolyStyle&gt;&lt;/Style&gt;&lt;Geometry&gt;POLYGON((17.299142714165868 62.3895778422407,17.307554121636571 62.390532519505882,17.314935560845555 62.388384452888118,17.309270735406102 62.385758829023544,17.298112745904149 62.387031887503035,17.299142714165868 62.3895778422407))&lt;/Geometry&gt;&lt;/StyledGeometry&gt;&lt;/StyledGeometrys&gt;" id="ctl00_m_g_34776f78_2e4e_4c4f_a337_9168b38e52fb_ctl00_ctl04_ctl01_ctl00_ctl00_ctl05_ctl00_ctl00_lCoordinate" />
     <%--   <input name="ctl00$m$g_34776f78_2e4e_4c4f_a337_9168b38e52fb$ctl00$ctl04$ctl01$ctl00$ctl00$ctl05$ctl00$ctl00$lCoordinate" type="text" value="POLYGON((17.904712701552739 63.857598111797515,16.059009576552739 63.0922545516534,16.762134576552739 62.992645967783119,17.465259576552739 62.912713680504389,18.124439264052739 62.792405181925787,18.432056451552739 62.772305835903261,18.739673639052739 62.8124908223104,19.091236139052739 62.872665578437974,20.277759576552739 63.132002721160518,20.717212701552739 63.721733837531247,20.761158014052739 63.818846510258986,20.849048639052739 64.069780205475752,20.892993951552739 64.242190378738144,20.892993951552739 64.394546651300573,20.233814264052739 64.8092022920612,19.970142389052739 64.84658557258399,19.310962701552739 64.883916981778484,19.091236139052739 64.902563252173508,18.783618951552739 64.902563252173508,18.256275201552739 64.902563252173508,17.772876764052739 64.865257757588253,17.553150201552739 64.8279004197475,17.333423639052739 64.7717670840722,16.674243951552739 64.640334117077614,16.542408014052739 64.564942729054877,16.234790826552739 64.413531999678568,15.927173639052739 64.165695858009684,15.795337701552739 64.01207181116915,15.751392389052739 63.95424393442638,15.707447076552739 63.876953911666817,15.663501764052739 63.741183104943815,15.707447076552739 63.818846510258986,15.751392389052739 63.915625544448496,15.839283014052739 64.069780205475752,15.443775201552739 63.643802894768157,15.224048639052739 63.585213926185773,14.784595514052739 63.448035992689071,14.476978326552739 63.32992936958648,14.257251764052739 63.151856419819694,14.169361139052739 62.972683368338814,14.389087701552739 62.732065999438291,15.136158014052739 62.832562763936195,15.839283014052739 62.862654043622157,17.904712701552739 63.857598111797515))" id="ctl00_m_g_34776f78_2e4e_4c4f_a337_9168b38e52fb_ctl00_ctl04_ctl01_ctl00_ctl00_ctl05_ctl00_ctl00_lCoordinate" />
--%>        <input name="ctl00$m$g_34776f78_2e4e_4c4f_a337_9168b38e52fb$ctl00$ctl04$ctl01$ctl00$ctl00$ctl05$ctl00$ctl00$lSCAStatus" type="text" value="Option" id="ctl00_m_g_34776f78_2e4e_4c4f_a337_9168b38e52fb_ctl00_ctl04_ctl01_ctl00_ctl00_ctl05_ctl00_ctl00_lSCAStatus" />
            <input name="ctl00$m$g_31e3211d_b8a7_49e5_86eb_775bbf1075ea$ctl00$ctl04$ctl01$ctl00$ctl00$ctl04$ctl00$ctl00$lSMILSite" type="text" value="http://localhost" id="ctl00_m_g_31e3211d_b8a7_49e5_86eb_775bbf1075ea_ctl00_ctl04_ctl01_ctl00_ctl00_ctl04_ctl00_ctl00_lSMILSite" />
    </span>
    
    <div id="silverlightControlHost">
  <object data="data:application/x-silverlight,2" type="application/x-silverlight-2" width="500px" height="300px">
    <param name="source" value="ClientBin/SMIL.Client.Coordinate.xap"/>
    <param name="onerror" value="onSilverlightError" />
    <param name="background" value="azure" />
    <param name="minRuntimeVersion" value="2.0.31005.0" />
    <param name="autoUpgrade" value="true" />
    <param name="initParams" value="SMIL.BingMap.CredentialsKey=AuQ2kqDNtkNtNd0FU1nPWQFPBo14nJiZ3VkaukVwnzB9DGy6lCrfSSX6cHAEjxHE" />
    <a href="http://go.microsoft.com/fwlink/?LinkID=124807" style="text-decoration: none;">
        <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style: none"/>
    </a>
  </object>
    <iframe style='visibility:hidden;height:0;width:0;border:0px'>
  </iframe>
</div>
    
    <%--<span id="ctl00_m_g_bcda8ae1_479d_4852_a3b0_ddcbf2f49aa2_ctl00_ctl02_ctl00_ctl01_ctl00_ctl00_ctl02_ctl00_ctl00_ctl05_ctl00_ctl00_lCoordinate">
    POLYGON((17.904712701552739 63.857598111797515,16.059009576552739 63.0922545516534,16.762134576552739 62.992645967783119,17.465259576552739 62.912713680504389,18.124439264052739 62.792405181925787,18.432056451552739 62.772305835903261,18.739673639052739 62.8124908223104,19.091236139052739 62.872665578437974,20.277759576552739 63.132002721160518,20.717212701552739 63.721733837531247,20.761158014052739 63.818846510258986,20.849048639052739 64.069780205475752,20.892993951552739 64.242190378738144,20.892993951552739 64.394546651300573,20.233814264052739 64.8092022920612,19.970142389052739 64.84658557258399,19.310962701552739 64.883916981778484,19.091236139052739 64.902563252173508,18.783618951552739 64.902563252173508,18.256275201552739 64.902563252173508,17.772876764052739 64.865257757588253,17.553150201552739 64.8279004197475,17.333423639052739 64.7717670840722,16.674243951552739 64.640334117077614,16.542408014052739 64.564942729054877,16.234790826552739 64.413531999678568,15.927173639052739 64.165695858009684,15.795337701552739 64.01207181116915,15.751392389052739 63.95424393442638,15.707447076552739 63.876953911666817,15.663501764052739 63.741183104943815,15.707447076552739 63.818846510258986,15.751392389052739 63.915625544448496,15.839283014052739 64.069780205475752,15.443775201552739 63.643802894768157,15.224048639052739 63.585213926185773,14.784595514052739 63.448035992689071,14.476978326552739 63.32992936958648,14.257251764052739 63.151856419819694,14.169361139052739 62.972683368338814,14.389087701552739 62.732065999438291,15.136158014052739 62.832562763936195,15.839283014052739 62.862654043622157,17.904712701552739 63.857598111797515))
    </span><br />
        <%--n=63.2442374927114 e=18.6647559786345 zoom=10
        value="n=63.2442374927114 e=18.6647559786345 zoom=10"
        --%>
    <%-- <input type="text"  
        id="ctl00_m_g_bcda8ae1_479d_4852_a3b0_ddcbf2f49aa2_ctl00_ctl02_ctl00_ctl01_ctl00_ctl00_ctl02_ctl00_ctl00_ctl05_ctl00_ctl00_TextField"/><br />
    <div id="silverlightControlHost">
        <object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="100%" height="100%">
		  <param name="source" value="ClientBin/SMIL.Client.Coordinate.xap"/>
		  <param name="onError" value="onSilverlightError" />
		  <param name="background" value="white" />
		  <param name="minRuntimeVersion" value="3.0.40624.0" />
		  <param name="autoUpgrade" value="true" />
		  <a href="http://go.microsoft.com/fwlink/?LinkID=149156&v=3.0.40624.0" style="text-decoration:none">
 			  <img src="http://go.microsoft.com/fwlink/?LinkId=108181" alt="Get Microsoft Silverlight" style="border-style:none"/>
		  </a>
	    </object><iframe id="_sl_historyFrame" style="visibility:hidden;height:0px;width:0px;border:0px"></iframe></div>--%>
    </form>
</body>
</html>
